gridpack::math::ValueTransfer< FromType, ToType > Class Template Reference
#include <value_transfer.hpp>
List of all members.
Classes |
struct | null_deleter |
| A thing to provide a null delete operation.
|
Public Member Functions |
| ValueTransfer (const unsigned int &from_size, FromType *from, ToType *to=NULL) |
| Default constructor.
|
| ~ValueTransfer (void) |
| Destructor.
|
unsigned int | size (void) const |
| Get the length of the "to" buffer.
|
void | go (void) |
| do whatever is necessary to set up and copy values
|
ToType * | to (void) |
| Get a pointer to the "to" buffer.
|
template<> |
unsigned int | p_computeToSize (void) const |
template<> |
unsigned int | p_computeToSize (void) const |
template<> |
void | p_setup () |
template<> |
void | p_setup () |
template<> |
void | p_copy (void) |
template<> |
void | p_copy (void) |
Detailed Description
template<typename FromType, typename ToType>
class gridpack::math::ValueTransfer< FromType, ToType >
This provides a consistent way to transfer values between RealType and ComplexType arrays, being (hopefully) smart about when memory is allocated. The transfer works both ways: complex <-> real. This is not approprate for the case of real math with a complex-based math library!
Constructor & Destructor Documentation
template<typename FromType , typename ToType >
template<typename FromType , typename ToType >
Member Function Documentation
template<typename FromType , typename ToType >
do whatever is necessary to set up and copy values
template<typename FromType , typename ToType >
Get the length of the "to" buffer.
template<typename FromType , typename ToType >
Get a pointer to the "to" buffer.
The documentation for this class was generated from the following file: